<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>网站配置问题</title>
	<script src="http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<link rel="stylesheet" href="http://hdcms.hd/public/hdjs/hdjs.css"/>
	<script type="text/javascript" src="http://hdcms.hd/public/hdjs/hdjs.min.js"></script>
	<link type="text/css" rel="stylesheet" href="http://hdcms.hd/app/Admin/View/common.css"/>
</head>
<body>
<form method="post" action="<?php echo U('set')?>">
    <input type="text" name="role_id" value="<?php echo $_GET['role_id']?>">
    <?php foreach ($node as $k=>$v){?>
        <h2>
            <input type="checkbox" name="node[]" value="<?php echo $v['id']?>"
               <if value="in_array($v['id'],$access)">
                   checked
                   </if>
            >
            <?php echo $v['title']?></h2>
        <?php foreach ($v['_data'] as $n=>$m){?>
                   <h3> <input type="checkbox" name="node[]" value="<?php echo $m['id']?>"
                       <if value="in_array($m['id'],$access)">
                           checked
                       </if>
                       >
                       <?php echo $m['title']?></h3>
                    <ul class="level3">
                    <?php foreach ($m['_data'] as $a=>$b){?>
                        <li>
                            <input type="checkbox" name="node[]" value="<?php echo $b['id']?>"
                            <if value="in_array($b['id'],$access)">
                                checked
                            </if>
                            ><?php echo $b['title']?>
                        </li>
                        <?php }?>
                    </ul>
            <?php }?>
    <?php }?>
    <input type="submit" class="hd_btn hd_btn-primary"/>
</form>
</body>
</html>

<style type="text/css">
    h3{
        clear: both;
        margin-top: 25px;
    }
    ul{
        height: auto;
        overflow: hidden;
    }
    ul.level2 li{
    }
    ul.level3 li{
        float:left;margin-right: 10px;
    }
</style>